﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;

namespace BCDto.Common.News.ContentCategory
{
    /// <summary>
    /// 内容分类
    /// </summary>
    public class ContentCategoryRequestDto
    {
        /// <summary>
        /// 分类名称
        /// </summary>
        [Display(Name = "分类名称")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string CategoryName { get; set; }

        /// <summary>
        /// 分类地址名称
        /// </summary>
        [Display(Name = "分类地址名称")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string CategoryUrlName { get; set; }
        /// <summary>
        /// 父分类Id
        /// </summary>
        [Display(Name = "父分类Id")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int ParentCategoryId { get; set; }
        /// <summary>
        /// 分类级别
        /// </summary>
        [Display(Name = "分类级别")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int CategoryLevel { get; set; }
        /// <summary>
        /// 分类顺序索引
        /// </summary>
        [Display(Name = "分类顺序索引")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int CategoryIndex { get; set; }

    }
}

